package day17.feifei;


import org.apache.commons.io.FilenameUtils;

import java.io.File;

public class Demo05_CommonApache {
    public static void main(String[] args) {
        File file=new File("D:\\file\\work\\a.txt");
        String path = file.getPath();
        FilenameUtils.getName(path);
        String extension = FilenameUtils.getExtension(path);
        System.out.println(extension);
    }
}
